//
//  UrlRequest.h
//  eventApp
//
//  Created by Zhou Shaolin on 11/18/10.
//  Copyright 2010 Microstrategy. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UrlRequest : NSObject {
	NSMutableData		*receivedData;
	NSMutableURLRequest	*theRequest;
	NSURLConnection		*theConnection;
	id					delegate;
	SEL					callback;
	SEL					errorCallback;
//    XmlDataParser       *dataParser;
 //   NSString            *resultToken;
    //ServiceFunctionType funcType;
}

//@property(nonatomic, assign) ServiceFunctionType funcType;
@property(nonatomic, retain) NSMutableData *receivedData;
@property(nonatomic, retain) id			    delegate;
//@property(nonatomic, retain) XmlDataParser  *dataParser;
@property(nonatomic, retain) NSString       *resultToken;
@property(nonatomic) SEL					callback;
@property(nonatomic) SEL					errorCallback;

-(void)request:(NSURL *) url;
-(void)requestToCheckList:(int) status andKeyWords:(NSString *)ketwords;
-(void) saveShenheToserve:(NSDictionary *) param;
-(void) requestToHeadShip:(NSString *) user_Id;
-(void) requestToLiuChengShePi:(NSString *) bill_no;
-(void) encodeRequest:(NSString*) sqlText;
-(void) postFileWithRequest:(NSData*) data imagePath:(NSString*)imagepath;
-(void) saveImageData;
-(void)login:(NSString*)userName pwd:(NSString*)password;
-(void)tfFileList;
-(void) savePhotoRemark:(NSString*) file_id andContent:(NSString*) content;
-(id) initWithDelegate:(id)requestDelegate requestSelector:(SEL)requestSelector errorSelector:(SEL)errorSelector;
-(void) releaseResources;

@end
